%% Class Notes for January 21

%% Working with Objects

% I created a new class called 'LaserData2' similar to the 'LaserData' Class
% Open the 'LaserData2.m' class definition file. 


%If I make a change to the class definition, I need to clear objects made
%from that class
clear LD_2
%And then clear all class definitinos. 
clear classes

%New object of class 'LaserData2'
LD_2=LaserData2()

%Setup the properties
LD_2.X=(1:10)
LD_2.Y=(1:10)
LD_2.LaserOn=0
LD_2.FileName='Experiment2'

%call methods
LD_2.plotData() %no input required.  All calculaions are done using object properties. 
LD_2.AddVars(4,3) %methods can also use inputs if required. 

%% In class problem:  We started to make a class to find prime numbers
%   We will finish this on Friday. 






